<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 日期</title>
</head>
<body>
<h2>上个世纪</h2>
<p>一位和两位数年份将被解释为 19xx 年：</p>

<p id="demo"></p>

<script>
  var d = new Date(99, 12, 25);
  document.getElementById("demo").innerHTML = d;
</script>

</body>
</html>

<!--
输出示例:Tue Jan 25 2000 00:00:00 GMT+0800 (China Standard Time)
-->

<!--
一位的年份会被解释为 19xx: var d = new Date(9, 12, 25); //Jan 25 1910
-->